import unittest,time
from selenium import webdriver
from Page import Page
from Page2 import Page2
from Page3 import Page3

class TestCase(unittest.TestCase):
    def setUp(self):
        self.driver=webdriver.Edge()
        self.driver.maximize_window()

    def tearDown(self):
        time.sleep(8)
        self.driver.quit()

    def test_baidu_01(self):
        po=Page(self.driver)
        po.luoji_baidu_login()

    def test_baidu_02(self):
        po=Page2(self.driver)
        po.search()
        po.baidu()

    def test_baidu_03(self):
        po=Page3(self.driver)
        po.luoji_baidu_login()
        po.tb()
        po.yl()
        po.mm()
        po.gz()


if __name__ == '__main__':
    unittest.main()
